package com.wangshouyu.mp.user.tag;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import com.wangshouyu.mp.base.response.BaseResponse;

import java.util.List;
import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月23日 16:22
 * @description 用户标签
 */
public class UserTagResponse extends BaseResponse {

    /**
     * 标签列表
     */
    @SerializedName(value = "tagid_list")
    @JsonProperty(value = "tagid_list")
    @JSONField(name = "tagid_list")
    private List<String> tagIdList;

    public List<String> getTagIdList() {
        return tagIdList;
    }

    public void setTagIdList(List<String> tagIdList) {
        this.tagIdList = tagIdList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        UserTagResponse that = (UserTagResponse) o;
        return Objects.equals(tagIdList, that.tagIdList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), tagIdList);
    }

    public UserTagResponse(List<String> tagIdList) {
        this.tagIdList = tagIdList;
    }

    @Override
    public String toString() {
        super.toString();
        return "UserTagResponse{" +
                "tagIdList=" + tagIdList +
                '}';
    }
}
